# Copyright 2005 Pascal Fleury
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Pascal Fleury <fleury@users.sourceforge.net>
# $Header:$

S="${WORKDIR}/qwtplot3d"
DESCRIPTION="QwtPlot3D is not a  program, but a feature-rich Qt/OpenGL-based C++ programming library. She provides essentially a  bunch of 3D-widgets for programmers."
SRC_URI="http://ovh.dl.sourceforge.net/sourceforge/qwtplot3d/qwtplot3d-0.2.4-beta.tgz"
HOMEPAGE="http://qwtplot3d.sourceforge.net/"
KEYWORDS="x86"
LICENSE="zlib"

DEPEND=">=doxygen-1.3.9.1"
RDEPEND=">=qt-3.3.3"

src_compile() {
	qmake
	make
}

src_install () {
	# You must *personally verify* that this trick doesn't install
	# anything outside of DESTDIR; do this by reading and
	# understanding the install part of the Makefiles. 
	make DESTDIR=${D} install || die
	# For Makefiles that don't make proper use of DESTDIR, setting the
	# prefix is often an alternative. However if you do this, then
	# you also need to specify mandir and infodir, since they were
	# passed to ./configure as absolute paths (overriding the prefix
	# setting).
	make \
		prefix=${D}/usr \
		mandir=${D}/usr/share/man \
		infodir=${D}/usr/share/info \
		install || die
	# Again, verify the Makefiles!	We don't want anything falling
	# outside of ${D}.

	# The dodoc command can be used to install files into the packages
	# documentation directory (/usr/share/doc/${PF}).
	#
	# The syntax for dodoc is: dodoc file1 [file2 [file3 [...]]]
	#
	# If you see the dodoc command below followed by one or more files,
	# Ebuilder found files in your package that are commonly
	# installed in the documents directory. You should look for any other
	# files that should be installed here (particularily if the 'dodoc'
	# command is commented out below).

	# Install documentation.
	#dodoc
}
